/*
 * @Description:
 * @version:
 * @Author: sunqian_sr
 * @Date: 2023-02-01 15:09:37
 * @LastEditors: Andy
 * @LastEditTime: 2023-02-15 09:55:07
 */
import i18n from '@/common/lang'

export const columns = [
  {
    label: i18n.t('system.announcement.title'),
    width: 'auto',
    prop: 'noticeTitle',
    fixed: true
  },
  {
    label: i18n.t('system.announcement.type'),
    width: 'auto',
    prop: 'noticeType',
    fixed: true
  },
  {
    label: i18n.t('system.announcement.state'),
    minWidth: 110,
    width: 'auto',
    prop: 'state',
    fixed: true
  },
  {
    label: i18n.t('system.announcement.data'),
    width: 'auto',
    prop: 'noticeTime'
  }
]
export const actions = [
  {
    key: 'edit',
    text: i18n.t('common.edit'),
    permissions: 'upms:notice:update'
  },
  {
    key: 'preview',
    text: i18n.t('common.preview'),
    permissions: 'upms:notice:detail'
  },
  {
    key: 'delete',
    text: i18n.t('common.delete'),
    permissions: 'upms:notice:delete'
  }
]
